package com.example.study_mybatis.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author cyrus
 */
@Data
@NoArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private Integer age;
    private Date birthday;
    private String schoolName;

    /**
     * 这个用户所维护的地址
     */
        private List<Address> addressList;

    public User(String username, String password, String nickname, Integer age, Date birthday, String schoolName) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.age = age;
        this.birthday = birthday;
        this.schoolName = schoolName;
    }
}
